<style type="text/css">
    .layui-table-body {
        overflow-x: auto;
    }

    .layui-table-cell {
        font-size: 12px;
    }
</style>
<div class="page-toolbar">
    <div class="page-filter fr">
        <form class="layui-form layui-form-pane" action="{:url()}" id="hisiSearch" method="get">
            <div class="layui-form-item">
                <label class="layui-form-label">搜索</label>
                <div class="layui-input-inline">
                    <input type="text" name="keyword" value="" lay-verify="required" placeholder="用户账号" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
        </form>
    </div>
    <div class="layui-btn-group fl">
        <!--<a href="{:url('createGroup')}" class="layui-btn layui-btn-primary layui-icon layui-icon-add-circle-fine">&nbsp;添加</a>-->
        <!--<a data-href="{:url('status?table=admin_member&val=1')}"
           class="layui-btn layui-btn-primary j-page-btns layui-icon layui-icon-play" data-table="dataTable">
            &nbsp;启用</a>
        <a data-href="{:url('status?table=admin_member&val=0')}"
           class="layui-btn layui-btn-primary j-page-btns layui-icon layui-icon-pause" data-table="dataTable">
            &nbsp;禁用</a>
        <a data-href="{:url('del?table=admin_member')}"
           class="layui-btn layui-btn-primary j-page-btns confirm layui-icon layui-icon-close red">&nbsp;删除</a>-->
    </div>
</div>
<form id="pageListForm">
    <div class="layui-form">
        <table id="dataTable"></table>
        <!--<script type="text/html" id="usernameTpl">
            <div style="line-height:18px;">
            <img src="{{ d.avatar ? d.avatar : '__ADMIN_IMG__/avatar.png' }}" width="60" height="60" class="fl">
            <p class="ml10 fl"><strong class="mcolor">{{ d.username }} ({{ d.nick }})</strong><br>手机：{{ d.mobile }}<br>邮箱：{{ d.email }}</p></div>
        </script>-->
        <script type="text/html" id="statusTpl">
            {{ d.audit }}
        </script>
        <script type="text/html" id="recommendTpl">
            <input type="checkbox" name="is_recommend" value="{{ d.is_recommend }}" lay-skin="switch"
                   lay-filter="switchStatus" lay-text="是|否" {{ d.is_recommend== 1
                   ? 'checked' : '' }} data-href="{:url('status')}?table=group&field=is_recommend&id={{ d.id }}">
        </script>
        <script type="text/html" id="hotTpl">
            <input type="checkbox" name="is_hot" value="{{ d.is_hot }}" lay-skin="switch"
                   lay-filter="switchStatus" lay-text="是|否" {{ d.is_hot== 1
                   ? 'checked' : '' }} data-href="{:url('status')}?table=group&field=is_hot&id={{ d.id }}">
        </script>
        <script type="text/html" title="操作按钮模板" id="buttonTpl">
            <!--<a href="{:url('view')}?groupId={{ d.id }}" class="layui-btn layui-btn-xs layui-btn-normal">查看</a>--><a href="{:url('edit')}?groupId={{ d.id }}" class="layui-btn layui-btn-xs layui-btn-normal">修改</a><a href="{:url('del')}?id={{ d.id }}&table=group" class="layui-btn layui-btn-xs layui-btn-danger j-tr-del">删除</a>
        </script>
    </div>
</form>
{include file="block/layui" /}
<script type="text/javascript">
    layui.use(['table'], function () {
        var table = layui.table;
        table.render({
            elem: '#dataTable'
            , url: '{:url()}' //数据接口
            , page: true //开启分页
            , limit: 20
            , text: {
                none: '暂无相关数据'
            }
            , cols: [[ //表头
                {type: 'checkbox'}
                , {field: 'id', title: '交易ID', width: 80}
                , {field: 'uid', title: '用户ID', width: 80}
                , {
                    field: 'nick', title: '昵称', width: 120
                }
                , {
                    field: 'mobile', title: '用户账号', width: 120
                }
                , {field: 'currency_name', title: '币种名称', width: 120}
                , {field: 'from', title: '来源地址'}
                , {field: 'number', title: '充值数量'}
                , {field: 'ctime', title: '充值时间'}

            ]]
        });
    });
</script>